/*
@Time : 2019/5/27 0027 19:53
@Author : visons
*/
package main

import (
	"cellent_test/base"
	"cellent_test/base/model"
	_ "cellent_test/handler"
)

func main() {
	param := model.ServiceParam{
		NetPeerType: "gorillaws.Acceptor",
		SvcName:     "server",
		ListenAddr:  "http://127.0.0.1:18802/echo",
		NetProcName: "gorillaws.ltv",
	}

	base.CreateCommicatePeer(param)
	//
	//type Users struct {
	//	UserId int `json:"user_id"`
	//}
	//
	//users := &Users{UserId:5658795894}
	//
	//data,_ := json.Marshal(users)
	//body := bytes.NewReader(data)
	//
	//var sny sync.WaitGroup
	//var n int = 0
	//sny.Add(10000)
	//for i:=0; i< 10000 ; i++ {
	//	go func() {
	//		_,err := http.Post("http://127.0.0.1:5060/plantsVsZombies/select_awards","application/json",body)
	//		if err != nil {
	//			fmt.Println(err)
	//		}
	//		sny.Done()
	//		n++
	//		fmt.Println(n)
	//		//data,_:= ioutil.ReadAll(res.Body)
	//		//fmt.Printf("%s",string(data))
	//		//fmt.Println()
	//	}()
	//}
	//
	//sny.Wait()

}
